﻿using UnityEngine;
using System.Collections;

public class Banner : MonoBehaviour {

	float offsetY;
	GameObject camera_go;
	// Use this for initialization
	void Start () {
		camera_go = GameObject.FindGameObjectWithTag ("MainCamera");
		offsetY = transform.position.y - camera_go.transform.position.y + 0.05f;
	}
	
	// Update is called once per frame
	void Update () {
		Vector3 pos = camera_go.transform.position;
		pos.x += 0.33f;
		pos.y += offsetY;
		transform.position = pos;
	}
}